package com.nbgs.demo.dao;

import com.nbgs.demo.model.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TestMapper {

    @Select("select * from t_user")
    List<User> findUsers();

    @Insert("INSERT INTO t_user (username,ID_num,user_address,user_tel) VALUES (CONCAT(#{username}),CONCAT(#{IDNum}),CONCAT(#{userAddress}),CONCAT(#{userTel}))")
    void addUser(User user);
}
